package com.onlinetask.common.exception;

import org.apache.log4j.Logger;

/**
 * Created with IntelliJ IDEA.
 * User: liyuanliu
 * Date: 13-11-18
 * Time: 下午1:44
 * To change this template use File | Settings | File Templates.
 */
public class AppException extends Exception{

    private static Logger logger = Logger.getLogger(AppException.class);

    public AppException(){ super();}

    public AppException(String message){
        super(message);
    }

    public AppException(String message, Throwable e){
        super(message,e);
    }

    public AppException(int errorCode, String message, Throwable e){
        logger.error("应用错误号："+errorCode);
        logger.error("应用错误信息："+message);
        logger.error("详细错误："+errorCode+"-"+message, e);
    }
}
